import {Tools} from 'weaver-mobile';

/**
 * 绩效-考核方案-获取详情
 * jiansong 2019/6/11
 */
export const programDetailApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programDetail',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核方案-操作
 * jiansong 2019/6/11
 */
export const programOperationApi = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/programOperation',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核方案-获取引用指标方案
 * jiansong 2019/6/11
 */
export const programBrowserApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programBrowser',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-考核方案-日志列表
 * jiansong 2019/6/11
 */
export const programLogListApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programLogList',
        params: {...params}
    };
    return Tools.callApi(options);
};